﻿<%@ Page Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="Edit.aspx.cs" Inherits="Cn.Cellula.Website.Admin.Product.Edit" Title="编辑基本信息" %>
<%@ Register src="Wuc_ProductEditMenu.ascx" tagname="Wuc_ProductEditMenu" tagprefix="uc1" %>
<%@ Register src="../../Wuc/Wuc_RichEditor.ascx" tagname="Wuc_RichEditor" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link type="text/css" rel="Stylesheet" href="/Cellula_Client/controls/JskitControls.css" />
    <script type="text/javascript" src="/jskit.org/model/controls/JskitRichDropDownList.js"></script>
    <script type="text/javascript" src="/jskit.org/model/JskitAreaSelector.js"></script>
    <script type="text/javascript" src="/jskit.org/model/JskitAreaSelector.Data.js"></script>
    <link type="text/css" rel="Stylesheet" href="/jskit.org/model/JskitAreaSelector.css" />
    <script type="text/javascript">
    var jas = new JskitAreaSelector("jas");
    jas.setData(JskitAreaSelectorData);
    jas.setStartLevel(2);
    function doSelectArea(){
        jas.open(fixId("txt_ProducingAreaName"),fixId("txt_ProducingArea"));
    }
    var jrddlCategory = new JskitRichDropDownList("jrddlCategory");
    function PageOnLoad(){
        jrddlCategory.deployTree(fixId("txt_CategoryName"),fixId("hid_CategoryId"),"Ws/_Category.aspx?ok=&rk=&t=category_product");
        $("#"+fixId("txt_ProducingAreaName")).value = jas.getNameByKey($("#"+fixId("txt_ProducingArea")).value);
    }
    </script>
    <uc2:Wuc_RichEditor ID="Wuc_RichEditor1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CPH_PageTitle" runat="server">
编辑基本属性
&nbsp;
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="CPH_MainBody" runat="server">
    <uc1:Wuc_ProductEditMenu ID="Wuc_ProductEditMenu1" runat="server" />
    <div class="action_bar">
        <asp:Button ID="btn_save2" runat="server" Text="保存后继续添加" 
            onclick="btn_save2_Click"/>
        <asp:Button ID="btn_save" runat="server" Text="保存" OnClick="btn_save_Click" />
        <input type="reset" value="重置" />
        <input type="button" onclick="jskitBulter.redirect('Admin/Product/List.aspx')" value="取消" />
    </div>
    <fieldset>
        <legend>产品信息</legend>
        <table border="0" cellpadding="0" cellspacing="0" class="edit_form">
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">名称：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ProductName"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    <span class="required">分类：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_CategoryName"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="hid_CategoryId" />
                </td>
            </tr>            
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">规格型号：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Model"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    <span class="required">产品编号：</span>
                </td>
                <td class="edit_form_item_content" colspan="3">
                    <asp:TextBox runat="server" ID="txt_ProductNo"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    <span class="required">长度：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Length"></asp:TextBox>(米)
                </td>
                <td class="edit_form_item_title">
                    <span class="required">宽度：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Width"></asp:TextBox>(米)
                </td>
                <td class="edit_form_item_title">
                    <span class="required">高度：</span>
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Height"></asp:TextBox>(米)
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    重量：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Weight"></asp:TextBox>(千克)
                </td>
                <td class="edit_form_item_title">
                    体积：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Volume"></asp:TextBox>(立方米)
                </td>
                <td class="edit_form_item_title">
                    材质：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_Material">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    颜色：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Color"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    产地：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ProducingAreaName" onclick="doSelectArea()"></asp:TextBox>
                    <asp:HiddenField runat="server" ID="txt_ProducingArea" />
                </td>
                <td class="edit_form_item_title">
                    生产商：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_Manufacturer"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    生产日期：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ProductDate" onclick="jskitDateSelector.open(this,event)"></asp:TextBox>
                </td>
                <td class="edit_form_item_title">
                    出厂日期：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_FactoryDate" onclick="jskitDateSelector.open(this,event)"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    属性：
                </td>
                <td class="edit_form_item_content">
                    <asp:CheckBox runat="server" ID="cbx_Colorable" Text="可改色" />
                    <asp:CheckBox runat="server" ID="cbx_Sizable" Text="可改尺" />
                </td>
                <td class="edit_form_item_title">
                    计价单位：
                </td>
                <td class="edit_form_item_content">
                    <asp:DropDownList runat="server" ID="ddl_Unit"></asp:DropDownList>
                </td>
                <td class="edit_form_item_title">
                    点击量：
                </td>
                <td class="edit_form_item_content">
                    <asp:TextBox runat="server" ID="txt_ClickCount"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    附属物品：
                </td>
                <td class="edit_form_item_content" colspan="5">
                    <asp:TextBox runat="server" ID="txt_Attechment" Width="440px" />
                </td>
            </tr>
            <tr>
                <td class="edit_form_item_title">
                    Tags：
                </td>
                <td class="edit_form_item_content" colspan="5">
                    <asp:TextBox runat="server" ID="txt_Tags" Width="440px" />
                </td>
            </tr>
           
            <tr>
                <td class="edit_form_item_title" valign="top">
                    简介：
                </td>
                <td colspan="5" class="edit_form_item_content">
                    <asp:TextBox runat="server" TextMode="MultiLine" ID="mtxt_Desc" Height="300px" Width="730px"></asp:TextBox>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Content>
